package pt.fct.mpc.lastfm.misc;

public class Errors
{

	public static final short NONE = 0x00;
	public static final short UNKNOWN_HOST_EXCEPTION = 0x01;
	public static final short UNKNOWN_METHOD_EXCEPTION = 0x02;
	public static final short BT_UNAVAILABLE = 0x03;
	
	
	public static String getErrorString(short error)
	{
		String str;
		switch (error)
		{
			case NONE:
				str = "No error occurred.";
				break;
				
			case UNKNOWN_HOST_EXCEPTION:
				str = "Unknown Host / Could not connect to server";
				break;
				
			case UNKNOWN_METHOD_EXCEPTION:
				str = "Unknown requested method";
				break;
				
			case BT_UNAVAILABLE:
				str = "Bluetooth unavailable. Perhaps it must be turned on.";
			
			default:
				str = "Unknown error.";
				break;
		}
		return str;
	}
}
